package cn.edu.sbs.talent.shiro.service.impl;

import cn.edu.sbs.talent.common.service.impl.BaseService;
import cn.edu.sbs.talent.shiro.entity.Account;
import cn.edu.sbs.talent.shiro.mapper.AccountMapper;
import cn.edu.sbs.talent.shiro.service.IAccountService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 账户 业务逻辑实现类
 *
 * @author ctidy
 * @since 2021/1/7
 */
@Service
@Transactional
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class AccountService extends BaseService<Account> implements IAccountService {
    private final AccountMapper mapper;

    @Override
    public Account loadUserByUsername(String username) {
        return mapper.selectByUsername(username);
    }
}
